#ifndef MAPCHUNK_H
#define MAPCHUNK_H

#include <QtGui>

class Map;

#define MAX_CHUNKS 20

class MapChunk: public QImage
{
public:
    static const MapChunk* getChunk(int, int, int, const QString& );
    bool chunkValid() const;

private:
    static QHash<QString, MapChunk*> chunks;
    static QList<QString> usage_stack;

private:
    explicit MapChunk(int, int, int, const QString&);
    bool _chunkValid;
};

#endif // MAPCHUNK_H
